package com.min.uitest

import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.min.uitest.ui.customcp.StaticUICompose
import com.min.uitest.ui.customcp.showList

class NavControllerCompose {

    companion object{
        const val STATIC_UI_NORMAL = "static_ui_normal"
        const val DYNAMIC_UI_LIST = "dynamic_ui_list"
    }



}

@Composable
fun NavController() {
    val navController = rememberNavController()
    NavHost(navController = navController, startDestination = NavControllerCompose.STATIC_UI_NORMAL) {
        composable(NavControllerCompose.STATIC_UI_NORMAL){
            StaticUICompose(navController)
        }
        composable(NavControllerCompose.DYNAMIC_UI_LIST){
            showList(navController)
        }
    }
}
